<template>
  <div class="goodslist">
    <good-listitem
      v-for="(item, index) in goodList"
      :key="index"
      :goods="item"
      class="goodlistitem"
    ></good-listitem>
  </div>
</template>

<script>
import GoodListitem from "./GoodsListItem.vue";
export default {
  data() {
    return {};
  },
  props: {
    goodList: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  components: {
    GoodListitem,
  },
};
</script>
<style scoped>
.goodlistitem{
  width:48%;
  padding: 3px;
  border-radius: 10px;
}
.goodslist{
  display: flex;
  flex-wrap: wrap;
  justify-content:space-around;
}
</style>
